<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app" >
  <c></c>
</div>

<template id="cpn">
  <div v-show="isShow">
    <h1>他时若遂凌云志,敢笑黄巢不丈夫</h1>
  </div>
</template>

<script src="../js/vue.js"></script>
<script>
  Vue.component('c',{
    template: `#cpn`,
    data() {
      return {
        isShow: true
      }
    }
  })

  //let(变量)和const(常量)
  const app = new Vue({
    el: '#app',
    data: {
      message: '中国牛蛙！',
      isShow: true
    }
  })
</script>
</body>
</html>